TARGET = ./lib/libnavmesh.a
OBJPATH = ./
CFLAGS = -Wall -w -g -ggdb -O2 -fPIC -Wno-unused -Wno-sign-compare -Wno-deprecated-declarations -Wno-deprecated -Wl,--no-as-needed -I ./lib/src/recastnavigation/Detour/Include -I ./lib/src/recastnavigation/Recast/Include/


LFLAGS = -lpthread  
LLIB = 

cppfiles := /$(wildcard *.cpp ./recast_cpp/*.cpp ./lib/src/recastnavigation/Detour/Source/*.cpp ./lib/src/recastnavigation/Recast/Source/*.cpp)

OBJS = $(patsubst %.cpp,$(OBJPATH)/%.o, $(cppfiles))

$(OBJPATH)/%.o : %.cpp
	g++ -c $(CFLAGS) $< -o $@

all : $(TARGET)

$(TARGET) : $(OBJS)
	$(AR) -rcs $(OBJPATH)/$(TARGET) $(OBJS) 
	
clean:
	@rm -f $(OBJPATH)/*.o
	@rm -f ./recast_cpp/*.o
	@rm -f ./lib/src/recastnavigation/Detour/Source/*.o
	@rm -f ./lib/src/recastnavigation/Recast/Source/*.o
	@rm -f $(TARGET)
	
	
	

